import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
const state = {
  MovieId: "",
  MovieName:"",
  UserID: "",
  ScheInfo: null,
  Seat: null,
  Sche: null,
  SeatCo:[]
}
export default new Vuex.Store({
  state,
  mutations: {
    UpdateMovieID(state, ID) {
      return (state.MovieId = ID)
    },
    UpdateMovieName(state,Name){
      return (state.MovieName=Name)
    },
    UpdateScheInfo(state, Info) {
      return (state.ScheInfo = Info)
    },
    Login(state, UserID) {
      return (state.UserID = UserID)
    },
    SeatInfo(state, Seat, Sche,SeatCo) {
      return (state.Seat = Seat, state.Sche = Sche,state.SeatCo=SeatCo)
    }
  },
  actions: {},
  modules: {}
})